window.addEventListener('load', function() {
    var ipt_phone = document.querySelector('.ipt-phone');
    var p_wechat = document.querySelector('.p-wechat');
    var p_weibo = document.querySelector('.p-weibo');
    var p_qq = document.querySelector('.p-qq');

    ipt_phone.addEventListener('focus', function() {
        ipt_phone.style.backgroundColor = 'white';
    })
    ipt_phone.addEventListener('blur', function() {
        ipt_phone.style.backgroundColor = '#f4f4f4';
    })

    p_wechat.addEventListener('mouseenter', function() {
        p_wechat.style.backgroundColor = '#58bc46';
    })
    p_wechat.addEventListener('mouseleave', function() {
        p_wechat.style.backgroundColor = '#ddd';
    })
    p_weibo.addEventListener('mouseenter', function() {
        p_weibo.style.backgroundColor = '#e90e24';
    })
    p_weibo.addEventListener('mouseleave', function() {
        p_weibo.style.backgroundColor = '#ddd';
    })
    p_qq.addEventListener('mouseenter', function() {
        p_qq.style.backgroundColor = '#3caae3';
    })
    p_qq.addEventListener('mouseleave', function() {
        p_qq.style.backgroundColor = '#ddd';
    })
})